package com.example.yyjc.domain.countryanalyze;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.apache.ibatis.type.Alias;

/**
 * @ClassName OrderCountAnalysis
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-11-17 13:18
 **/
@Data
@Alias("orderCountAnalysis")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class OrderCountAnalysis extends BaseRowModel {

    /**
     * 范围区间
     */
    @ExcelProperty(value = "订单区间(导入时,区间范围需严格跟例子一致)")
    @ColumnWidth(value = 55)
    private String orderCountLimit;

    /**
     * 商品数量
     */
    @ExcelProperty(value = "商品数量")
    @ColumnWidth(value = 15)
    private Integer goodsCount;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期(2020年12月即为202012)")
    @ColumnWidth(value = 40)
    private String createTime;

    /**
     * 国家名称
     */
    @ExcelProperty(value = "国家名称")
    @ColumnWidth(value = 15)
    private String countryName;

    /**
     * 订单数量
     */
    @ExcelProperty(value = "订单数量")
    @ColumnWidth(value = 15)
    private Integer count;

    /**
     * 商品数量占比
     */
    @ExcelProperty(value = "商品数量占比")
    @ColumnWidth(value = 30)
    private String goodsCountScale;
}
